using System;
using System.Drawing;
using System.Windows.Forms;

class Program {
    static void Main(){
        Application.Run(new DotsPerInch());
    }
}

class DotsPerInch:Form {
    public DotsPerInch(){
        Text = "Dots Per Inch";
    }

    protected override void OnPaint(PaintEventArgs e)
    {
        var g = e.Graphics;
        // 小字体 96dpi
        // 大字体 120dpi
        var str = String.Format("dpix={0},dpiy={1}",g.DpiX,g.DpiY);
        g.DrawString(str,Font,new SolidBrush(ForeColor),0,0);
    }
}